package com.exam.service;

import com.exam.po.FillQuestion;
import com.exam.po.JudgeQuestion;
import com.exam.po.MultiQuestion;
import com.exam.vo.AnswerVO;

import java.util.List;

/**
 * @author zhanggaoxiang
 * @ClassName AnswerService
 * @Description TODO
 * @Date 2021/1/12 10:47
 * @Version 1.0
 **/
public interface AnswerService {
    /**
     * @Author zhanggaoxiang
     * @Description 管理员分页查询题库
     * @Date 2021/1/12 10:58
     * @Param [page, size]
     * @return java.util.List<com.exam.vo.AnswerVO>
     **/
    List<AnswerVO> findAnswerByPage(Integer page, Integer size);
    /**
     * @Author zhanggaoxiang
     * @Description 根据id删除题库
     * @Date 2021/1/12 13:17
     * @Param [questionId]
     * @return int
     **/
    int deleteFillQuesstionById(Integer questionId);

    /**
     * 教师分页查询题库
     * @param current
     * @param size
     * @return
     */
    List<AnswerVO> findteacherAnswerByPage(Integer current, Integer size);

    FillQuestion findFillQuesstionById(Integer questionId);

    JudgeQuestion findJudegeQuesstionById(Integer questionId);

    int deleteJudegeQuesstionById(Integer questionId);

    MultiQuestion findMultiQuesstionById(Integer questionId);

    int deleteMultiQuesstionById(Integer questionId);

    /**
     * 查判断题总记录
     * @return
     */
    int countByJudgeQuestion();

    /**
     *查天空题总记录
     * @return
     */
    int countByFillQuestion();

    /**
     * 查选择题总记录
     * @return
     */
    int countByMultiQuestion();
    Integer findAnswerCount();
}
